package com.woniu.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.woniu.entity.PageBean;
import com.woniu.entity.Project;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author hyl
 * @since 2022-08-28
 */
public interface IProjectService extends IService<Project> {

    PageBean<Project> getByPage(Project project, int page);
    void add(Project project);

    List<Project>getAll();
    void update(Project project);
    Project getByProId(int proId);

    List<Project> getByCondition(Project project);

    Integer getNumsByProStatusAndProId(Project project);
    List<Project> getProjectByProStatusAndProId(Project project);

    //审批通过
    //项目状态为四种，r-->审批中；y-->已通过审批，项目执行中；n-->未通过审批；e-->项目结束
    void ppass(int proid);

    //审批通过
    void punpass(int proid);

    //审核结束
    void endpro(int proid,String endtime);

    //创建项目
    void insertPro(Project project);

    //重新提交
    void reSubmit(Project project);

}
